﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinBookKeeping.Utility
{
    public class MessageHelper
    {
        public static void Info(string title,string msg)
        {
            MessageBox.Show(msg,title,MessageBoxButtons.OK, MessageBoxIcon.Information);
        }public static void Error(string title,string msg)
        {
            MessageBox.Show(msg,title,MessageBoxButtons.OK, MessageBoxIcon.Error);
        }public static DialogResult Confirm(string title,string msg)
        {
           return MessageBox.Show(msg,title,MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
        }
    }
}
